Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
/* State of each CPU. */
DEFINE_PER_CPU(int, cpu_state) = { 0 };
-static void *stack_base[NR_CPUS] __cacheline_aligned;
+static void *stack_base[NR_CPUS];
static DEFINE_SPINLOCK(cpu_add_remove_lock);
/*
return cpu;
}
-static struct vcpu *prepare_idle_vcpu(unsigned int cpu)
-{
- if (idle_vcpu[cpu])
- return idle_vcpu[cpu];
-
- return alloc_idle_vcpu(cpu);
-}
-
static void *prepare_idle_stack(unsigned int cpu)
{
if (!stack_base[cpu])
booting_cpu = cpu;
- v = prepare_idle_vcpu(cpu);
+ v = alloc_idle_vcpu(cpu);
BUG_ON(v == NULL);
/* start_eip had better be page-aligned! */